package com.xkstream.client.api.kt

import com.xkstream.client.utils.RetrofitUtil

/**
 * Created by xiaoyi on 2017-11-2.
 */
class MessageApi {
    private constructor() {
        service = RetrofitUtil.getRetrofit().create(MessageService::class.java)
    }

    var service: MessageService? = null

    companion object {
        fun getInstance(): MessageApi {
            return InnerHolder.sInstance
        }
    }

    class InnerHolder {
        companion object {
            val sInstance: MessageApi = MessageApi()
        }
    }
}